var express = require('express');
var router = express.Router();
var upload = require('./fileuploads');
//文件上传服务
router.post('/', upload.single('file'), function (req, res, next) {
    res.send("1111111");
    console.log("222222222");
    console.log(req.file);
    if (req.file) {
        res.send('文件上传成功')
        
        console.log(req.body);
    }
});

module.exports = router;